package com.suray.wcs.service.system.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.suray.commin.annotation.Excel;
import com.suray.wcs.service.enums.CodeLevel;
import com.suray.wcs.service.enums.CodeType;
import com.suray.commin.core.utils.BaseModel;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;

/**
 * @author szn
 * 2019/10/12
 * 异常码字典
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName(autoResultMap = true, value = "wcs_code")
public class CodeDB extends BaseModel implements Serializable {

    private static final long serialVersionUID = 1L;
    @TableId(value = "code_id", type = IdType.AUTO)
    @Excel(name = "异常码ID")
    private Integer codeId;

    @Excel(name = "十六进制异常码")
    private String codeHex;

    @Excel(name = "十进制异常码")
    private Integer codeDec;

    @Excel(name = "异常描述")
    private String codeDesc;

    @Excel(name = "异常类型", dictType = "sys_code_type")
    private Integer codeType;

    @Excel(name = "异常级别", dictType = "sys_code_level")
    private Integer codeLevel;

    @Excel(name = "建议处理方法")
    private String solution;
}
